
function main() {
    Java.perform(function (){
        
        var libnative_addr = Module.findBaseAddress("libil2cpp.so")

        MemoryAccessMonitor.enable({
            base:libnative_addr.add(0x581799),
            size:4
        },{
            onAccess: function(details) {
                console.log("0x" + (details.from - libnative_addr).toString(16))
            }
        })

        {
            var addr = libnative_addr.add(0x0069D678)
            console.log("UIFighting__Destroy addr :",addr);
            Interceptor.attach(addr , {
                onEnter: function(args){
                    console.log("UIFighting__Destroy onEnter");

                    console.log('called from:\n' +
                    Thread.backtrace(this.context, Backtracer.ACCURATE)
                    .map(DebugSymbol.fromAddress).join('\n') + '\n')
                },
                onLeave: function(){
            

                    console.log(
                        Thread.backtrace(this.context, Backtracer.ACCURATE)
                        .map(DebugSymbol.fromAddress).join('\n') + '\n');
                },
                onLeave: function(){
                   

               
                }
            })
        }

        {
            var addr = libnative_addr.add(0x00F65278)
            console.log("Time$$get_timeScale :",addr);
            Interceptor.attach(addr , {
                onEnter: function(args){
                    console.log("Time$$get_timeScale onEnter");

                },
                onLeave: function(){

               
                }
            })
        }

        
        {
            var addr = libnative_addr.add(0x00982A1C)
            console.log("PanelPveWin$$OnReceiveData :",addr);
            Interceptor.attach(addr , {
                onEnter: function(args){
                    console.log("PanelPveWin$$OnReceiveData onEnter");
                    console.log("LogicUser._CheckAccelerator onEnter");
                    console.log(
                        Thread.backtrace(this.context, Backtracer.ACCURATE)
                        .map(DebugSymbol.fromAddress).join('\n') + '\n');
                },
                onLeave: function(){
                   
               
                }
            })
        }


    })
}
setImmediate( main );

// frida -U com.zjqd.mzxq.aligames -l u3dil2c
// frida -U com.hsyou.game.jbccz.aligames -l u3dil2c


